Guidelines for Prompting
2つのprinciples、いくつかのtactics
https://learn.deeplearning.ai/chatgpt-prompt-eng/lesson/2/guidelines
notebookあり!
環境構築
openai(Pythonライブラリ)
python-dotenv
ヘルパー関数
"gpt-3.5-turbo""
userとして全てのプロンプトを送る
temperatureは検証時は0にする
Principle 1: Write clear and specific instructions
Principle 2: Give the model time to "think"
Model limitations: hallucinations
make things up that sound plausible but are not actually true
「もっともらしいが実際は正しくない」
ここで紹介したテクニックはhallucinations対策にもなる
Reducing hallucinationsする追加tactic
First find relevant information
then answer the question based on the relevant information
「関連する情報を見つけさせ、その情報に基づいて質問に回答させる」